import '../bean/alarm_bean.dart';
import '../utils/api/http.dart';
import '../utils/tools/localstorage_tool.dart';

class OptionTypeModel {

  /// ### 查询告警类型列表
  static Future reqAlarmStatus() async {
    String token = await LocalStorage.getStringItem("token");
    var res = await HttpManager.getInstance().post("alarm/getAlarmStatus?token=${token}");
    return res["data"];
  }

  /// ### 查询设备类型列表
  static Future reqAlarmDeviceType() async {
    String token = await LocalStorage.getStringItem("token");
    var res = await HttpManager.getInstance().post("alarm/getAlarmDeviceType?token=${token}");
    return res["data"];
  }
}
